package cn.sunxyz.struct.proxy;

/**
 * Created by yangrd on 2017/5/13.
 */
public class Proxy implements ISource {

    private Source source = new Source();

    @Override
    public void doSometing() {
        before();
        source.doSometing();
        after();
    }

    private void before() {
        System.out.println("Proxy#before");
    }

    private void after() {
        System.out.print("Proxy#after");
    }
}
